package com.szt.school.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;


import java.util.Date;

@Table(name = "user")
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class User {
    @Id  //表明id属性对应的字段为主键列
    @KeySql(useGeneratedKeys = true)  //开启主键自动回填
    private Integer uid;
    private String username;
    private String userpwd;
    private Integer usertype;
    private Date usertime;
    private String dbName;
    private String usersex;


}

